package com.wc5818.wcFlow.service.impl;

import com.wc5818.wcFlow.entity.WcFlow;
import com.wc5818.wcFlow.mapper.WcFlowMapper;
import com.wc5818.wcFlow.service.IWcFlowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-02-20
 */
@Service
@Primary
public class WcFlowServiceImpl extends ServiceImpl<WcFlowMapper, WcFlow> implements IWcFlowService {
   @Autowired
    WcFlowMapper wcFlowMapper;
    /**
     * 插入
     *
     * @param wcFlow
     * @return
     */
    @Override
    public Boolean insertAll(WcFlow wcFlow) {
        if (wcFlowMapper.insertAll(wcFlow)==0){
            return false;
        }
        return true;
    }
}
